import { defineConfig } from 'vitest/config'

export default defineConfig({
  base:'./',
  test: {
    // 测试相关配置
    globals: true, // 启用全局 API
    environment: 'jsdom', // 测试环境 (jsdom/node)
    coverage: {
      provider: 'istanbul' // 或 'c8'
    },
    exclude: [
      '**/node_modules/**',
      '**/dist/**',
      '**/cypress/**',
      '**/.{idea,git,cache,output,temp}/**',
      '**tmp/**'
    ]
  }
})